<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单查询</title>
</head>
<body>
    <a href="/home/" class="button">返回</a>
    <h2>订单查询</h2>
    {% if messages %}
        <ul class="messages">
            {% for message in messages %}
                <li {% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
            {% endfor %}
        </ul>
    {% endif %}
    <a href="/return/" class="button">前往取消订单</a>
    <form action="/order/" method="post">
        {% csrf_token %}
        <button type="submit" name="action" value="4">查询正常订单</button>
        <div class="container mt-5">
        </div>
    </form>
    {% if order %}
        {% for order in order %}
            <p><strong>订单号:</strong> {{ order.orderid }}   <strong>订单状态:</strong> {{ order.status }}</p>
        {% endfor %}
    {% else %}
        <p>未找到。</p>
    {% endif %}
</body>
</html>

